package com.neusoft.databus.policy.expression;

import java.util.Map;

import com.neusoft.databus.common.bean.ResourceBean;

/**
 * 拓展策略解析器
 * 
 * @author naxiang
 */
public interface PolicyExpressionExpandParser {

    /**
     * 扩展解析方法
     * 
     * @param expression
     * @param resourceBean
     * @param policyId
     * @return
     * @throws Exception
     */
    public boolean expandParser(Map<String, Object> expression, ResourceBean resourceBean, Long policyId)
            throws Exception;

    /**
     * 复杂规则扩展解析
     * 
     * @param expression
     * @param resourceBean
     * @param policyId
     * @return
     * @throws Exception
     */
    public boolean expandParserCep(Map<String, Object> expression, ResourceBean resourceBean, Long policyId)
            throws Exception;

}
